# 局部变量和全局变量

# def fun_01(a):
#     num = 3
#     print("num:",num,"a:",a)
#
# fun_01(5)
# # print(a)
# # print(num)  # 此处a和num都是函数fun_01的局部变量，只在函数fun_01范围内有效，不能作用于函数外
#
# b = 5
# c = 6
# def fun_02():
#     global b
#     print("aaaaa")
#     print(b)
#     # print(c)
#     # print(b+c)
#     b += 2
#     print(b)
#
# fun_02()
# print(b)
# # print(c)
#
# # global关键字
#
# d = 5
# e = 6
# def fun_03():
#     global d
#     print("aaaaa")
#     print(d)
#     # print(e)
#     # print(d+e)
#     d += 2
#     print(d)
#
# fun_03()
# print(d)
# # print(e)

# def fun_04():
#     global f
#     f = 4
#     print(f)
#     f = f + 6
#     print(f)
#
# fun_04()
# print(f)
# f = f + 4
# print(f)
#
# def fun_05():
#     num = 2
#     print("1:",num)
#     def fun_06():
#         nonlocal num
#         num += 2
#         print(num)
#     fun_06()
#     print("2:",num)
# fun_05()

sum = lambda num1,num2 : num1 + num2
print(sum(11,12))
